package cn.operation.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @FileName: CvSeriesDTO
 * @Description: 商品车车系
 * @author: fancy
 * @date: 2017/5/24.
 */

@ApiModel(value = "CvSeriesDTO", description = "商品车车系返回对象")
public class CvSeriesDTO implements Serializable {

	@ApiModelProperty(value = "主键id", position = 1)
	private Integer id;

	@ApiModelProperty(value = "车系编码", position = 2)
	private String code;

	@ApiModelProperty(value = "车系名称", position = 3)
	private String name;

	@ApiModelProperty(value = "所属品牌ID", position = 4)
	private Integer brandId;

	@ApiModelProperty(value = "状态，10:正常、20:禁用", allowableValues = "10,20", position = 5)
	private String status;

	@ApiModelProperty(value = "备注", position = 6)
	private String comment;


	private static final long serialVersionUID = 1L;

	/**
	 * This method was generated by MyBatis Generator.
	 * This method returns the value of the database column sc_base_cv_series.id
	 *
	 * @return the value of sc_base_cv_series.id
	 * @mbggenerated Wed May 24 13:49:05 CST 2017
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * This method was generated by MyBatis Generator.
	 * This method sets the value of the database column sc_base_cv_series.id
	 *
	 * @param id the value for sc_base_cv_series.id
	 * @mbggenerated Wed May 24 13:49:05 CST 2017
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * This method was generated by MyBatis Generator.
	 * This method returns the value of the database column sc_base_cv_series.code
	 *
	 * @return the value of sc_base_cv_series.code
	 * @mbggenerated Wed May 24 13:49:05 CST 2017
	 */
	public String getCode() {
		return code;
	}

	/**
	 * This method was generated by MyBatis Generator.
	 * This method sets the value of the database column sc_base_cv_series.code
	 *
	 * @param code the value for sc_base_cv_series.code
	 * @mbggenerated Wed May 24 13:49:05 CST 2017
	 */
	public void setCode(String code) {
		this.code = code == null ? null : code.trim();
	}

	/**
	 * This method was generated by MyBatis Generator.
	 * This method returns the value of the database column sc_base_cv_series.name
	 *
	 * @return the value of sc_base_cv_series.name
	 * @mbggenerated Wed May 24 13:49:05 CST 2017
	 */
	public String getName() {
		return name;
	}

	/**
	 * This method was generated by MyBatis Generator.
	 * This method sets the value of the database column sc_base_cv_series.name
	 *
	 * @param name the value for sc_base_cv_series.name
	 * @mbggenerated Wed May 24 13:49:05 CST 2017
	 */
	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	/**
	 * This method was generated by MyBatis Generator.
	 * This method returns the value of the database column sc_base_cv_series.brand_id
	 *
	 * @return the value of sc_base_cv_series.brand_id
	 * @mbggenerated Wed May 24 13:49:05 CST 2017
	 */
	public Integer getBrandId() {
		return brandId;
	}

	/**
	 * This method was generated by MyBatis Generator.
	 * This method sets the value of the database column sc_base_cv_series.brand_id
	 *
	 * @param brandId the value for sc_base_cv_series.brand_id
	 * @mbggenerated Wed May 24 13:49:05 CST 2017
	 */
	public void setBrandId(Integer brandId) {
		this.brandId = brandId;
	}

	/**
	 * This method was generated by MyBatis Generator.
	 * This method returns the value of the database column sc_base_cv_series.status
	 *
	 * @return the value of sc_base_cv_series.status
	 * @mbggenerated Wed May 24 13:49:05 CST 2017
	 */
	public String getStatus() {
		return status;
	}

	/**
	 * This method was generated by MyBatis Generator.
	 * This method sets the value of the database column sc_base_cv_series.status
	 *
	 * @param status the value for sc_base_cv_series.status
	 * @mbggenerated Wed May 24 13:49:05 CST 2017
	 */
	public void setStatus(String status) {
		this.status = status == null ? null : status.trim();
	}

	/**
	 * This method was generated by MyBatis Generator.
	 * This method returns the value of the database column sc_base_cv_series.comment
	 *
	 * @return the value of sc_base_cv_series.comment
	 * @mbggenerated Wed May 24 13:49:05 CST 2017
	 */
	public String getComment() {
		return comment;
	}

	/**
	 * This method was generated by MyBatis Generator.
	 * This method sets the value of the database column sc_base_cv_series.comment
	 *
	 * @param comment the value for sc_base_cv_series.comment
	 * @mbggenerated Wed May 24 13:49:05 CST 2017
	 */
	public void setComment(String comment) {
		this.comment = comment == null ? null : comment.trim();
	}

	/**
	 * This method was generated by MyBatis Generator.
	 * This method corresponds to the database table sc_base_cv_series
	 *
	 * @mbggenerated Wed May 24 13:49:05 CST 2017
	 */
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", id=").append(id);
		sb.append(", code=").append(code);
		sb.append(", name=").append(name);
		sb.append(", brandId=").append(brandId);
		sb.append(", status=").append(status);
		sb.append(", comment=").append(comment);
		sb.append("]");
		return sb.toString();
	}
}